#include "HorizontalSplitter.hpp"

#include "MessageWindow.hpp"

#include <Wt/WText>

// This "HorizontalSplitter" has two BoxLayouts (which are the window areas).
HorizontalSplitter::HorizontalSplitter()
        :
    message_window(new MessageWindow)
{
    Wt::WText* test1 = new Wt::WText("&nbsp;CARBLogger_UI 1", Wt::TextFormat::XHTMLText);
    Wt::WText* test2 = new Wt::WText("&nbsp;CARBLogger_UI 2", Wt::TextFormat::XHTMLText);
    Wt::WApplication::instance()->styleSheet().addRule(new BorderTest);
    test1->setStyleClass("testing222");
    test2->setStyleClass("testing222");
    
    

//     setSpacing(21);
    setContentsMargins(0, 0, 0, 0); // Take up the extra vew pixes used by default. Makes it look better. 
    
//     addWidget(test1,1);
    addLayout(message_window);
    setResizable(0); // Enable the vertical slider between top and bottom halves.
    addWidget(test2,2);
}
